import LayoutBase from '@/components/layout/layoutBase.vue'
import SysteamView from './systeamView.vue'
import CarouselView from './carouselView.vue'
import NavTypeView from './navTypeView.vue'
import BasicConfigView from './basicConfigSetView.vue'
import CarouselPageView from './carouselPageView.vue'
import SharePageView from './sharePageView.vue'

const router = [
  {
    path: '/systeam',
    component: LayoutBase,
    meta: {
      title: '配置中心',
    },
    children: [
      {
        path: 'set',
        name: 'systeam.set',
        component: SysteamView,
        meta: {
          title: '配置中心',
        },
      },
      {
        path: 'carousel',
        name: 'systeam.carousel',
        component: CarouselView,
        meta: {
          title: '首页轮播',
        },
      },
      {
        path: 'share',
        name: 'systeam.share.page',
        component: SharePageView,
        meta: {
          title: '分享背景',
        },
      },
        {
        path: 'carouselpage',
        name: 'systeam.carousel.page',
        component: CarouselPageView,
        meta: {
          title: '首页弹窗',
        },
      },
      {
        path: 'navType',
        name: 'systeam.navType',
        component: NavTypeView,
        meta: {
          title: '金刚区配置',
        },
      },
      {
        path: 'basicConfig',
        name: 'systeam.basicConfig',
        component: BasicConfigView,
        meta: {
          title: '系统设置',
        },
      },
    ],
  },
]

export default router
